﻿using System;

namespace Alex.Framework.Domain
{
    /// <summary>
    /// 聚合特性
    /// </summary>
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
    public class AggregateAttribute : Attribute
    {
        /// <summary>
        /// 聚合名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="name">聚合名称</param>
        public AggregateAttribute(string name)
        {
            this.Name = name;
        }
    }
}
